package com.cloud.shopping.config;

import com.cloud.shopping.tool.Signature;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * @author John.zhang
 * @version Id: SecurityConfig, v 1.0 2021/1/6 14:13 ZhiYong Exp $
 * 签名
 */
@Configuration
public class SecurityConfig {

    @Value("${pay.aes.secret}")
    private String secret;

    @Value("${pay.aes.salt}")
    private String salt;

    @Bean
    public Signature signature() {
        return new Signature(secret, salt);
    }

}
